package com.yjhb.android.sbz.entity;

import com.google.gson.Gson;
import com.jojo.android.zxlib.base.BaseEntity;

/**
 * 创建者 zx
 * 创建时间 2020/12/2 10:37
 */
public class Comment extends BaseEntity {



    /**
     * id : 1
     * taskId : 4
     * userId : 1
     * nickName : xxx
     * avatar :
     * star : 5
     * content : 666
     * state : 1
     * createTime : 2020-12-01 16:45:30
     */

    private int id;
    private int taskId;
    private int userId;
    private int orderId;
    private String nickName;
    private String avatar;
    private int star;
    private String content;
    private int state;
    private String createTime;

    public static Comment objectFromData(String str) {

        return new Gson().fromJson(str, Comment.class);
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTaskId() {
        return taskId;
    }

    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
